package com.xc.ezplan.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.xc.ezplan.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lixingchen
 * @date 2022/11/15
 * @description 后台角色表
 */
@TableName(value ="admin_user")
@Data
@ApiModel(description = "用户实体")
@EqualsAndHashCode(callSuper = true)
public class AdminUser extends BaseEntity {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID")
    private Long id;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String gender;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 头像地址
     */
    @ApiModelProperty(value = "头像地址")
    private String avatarName;

    /**
     * 头像真实路径
     */
    @ApiModelProperty(value = "头像真实路径")
    private String avatarPath;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 是否为admin账号
     */
    @ApiModelProperty(value = "是否为admin账号")
    private Boolean isAdmin;

    /**
     * 状态：1启用、0禁用
     */
    @ApiModelProperty(value = "状态：1启用、0禁用")
    private Boolean enabled;

    /**
     * 删除状态：1已删除、0未删除
     */
    @ApiModelProperty(value = "删除状态：1已删除、0未删除")
    @TableLogic
    private Boolean delFlag;

    /**
     * 修改密码的时间
     */
    @ApiModelProperty(value = "修改密码的时间")
    private Date pwdResetTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}